package com.groupbuying.settleproducer.controller;

import com.groupbuying.settleproducer.service.SettleUshopYsSplitSyncreceiptService;
import com.groupbuying.settleproducer.utils.apiresult.ApiResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @api {get} /financial/activeCheck
 * @apiExample author WANGNING
 * email wyn20140226@aliyun.com
 * tar 分账异常处理接口
 * date 2019年11月29日
 * @apiGroup settle-produce
 * @apiVersion 1.0.0
 * @apiSuccess {String} succeed
 */
@RestController
@RequestMapping("/settleproduce/split")
public class SettleUshopYsSplitSyncreceiptController {
    private static final Logger logger = LoggerFactory.getLogger(SettleUshopYsSplitSyncreceiptController.class);

    @Autowired
    private SettleUshopYsSplitSyncreceiptService settleUshopYsSplitSyncreceiptService;

    @GetMapping("/exce")
    public ApiResult splitExce() {
        logger.info("SettleUshopYsSplitSyncreceiptController.splitExce()---开始请求异常处理单子");
        ApiResult apiResult = settleUshopYsSplitSyncreceiptService.ysSplitExce();
        return apiResult;
    }


}
